/** ################################## BEECLEVER GMBH KOBLENZ ################################### ##### Copyright (c) 2019-present, beeclever GmbH Koblenz DE, All rights reserved. ##### ##### THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR ##### ##### IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS ##### ##### FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR ##### ##### COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER ##### ##### IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN ##### ##### CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ##### ############################################################################################# @preserve v2.1.1 */ function initializeGDPRScript(){if(window.GDPR_LC_INIT!==undefined){return}if(window.COMPLIANZ_CONFIGURATION_IS_SET===true){return}if(!(!!window.Shopify&&!!window.Shopify.Checkout)){if(!!window.Shopify&&!!window.Shopify.loadFeatures&&!window.Shopify.trackingConsent){window.Shopify.loadFeatures([{name:"consent-tracking-api",version:"0.1"}],e=>{if(e){throw e}})}if(window.GDPR_LC_INIT===undefined){window.GDPR_LC_INIT=true;var e={};e.detect={isBot:/bot|google|baidu|bing|msn|teoma|slurp|yandex|googlebot|crawler|spider|robot|crawling/i.test(navigator.userAgent),isLightHouse:/Chrome-Lighthouse/i.test(navigator.userAgent)};if(typeof GDPR_LC_ZLoad!==undefined&&!e.detect.isBot&&!e.detect.isLightHouse&&!navigator["webdriver"]){var O=20201216225107;var M={_bc_c_set:{description:"Used in connection with GDPR legal Cookie.",path:"/",domain:"",provider:"GDPR Legal Cookie",type:"type_0",expires:"2592000",recommendation:"0",editable:false,deletable:false,set:"0",optIn:true,live:0},_identity_session:{description:"Merchant authentication: Main session cookie for Identity authentication. This is the underlying Rails session cookie. It contains the SID.",path:"/",domain:"",provider:"Shopify",deletable:false,expires:"63072000",type:"type_0",recommendation:"0",editable:false,set:"0"},_master_udr:{description:"Permanent device identifier.",path:"/",domain:"",provider:"Shopify",deletable:false,expires:"0",type:"type_0",recommendation:"0",editable:false,set:"0"},_merchant_essential:{description:"Contains essential information for the correct functionality of merchant surfaces such as the admin area.",path:"/",domain:"",provider:"Shopify",deletable:false,expires:"31536000",type:"type_0",recommendation:"0",editable:false,set:"0"},_secure_admin_session_id:{description:"Used to store session id in core for auth Legacy Admin.",path:"/",domain:"",provider:"Shopify",deletable:false,expires:"7257600",type:"type_0",recommendation:"0",editable:false,set:"0"},_secure_admin_session_id_csrf:{description:"Used to store session id in core for auth Legacy Admin.",path:"/",domain:"",provider:"Shopify",deletable:false,expires:"7257600",type:"type_0",recommendation:"0",editable:false,set:"0"},_shopify_essential:{description:"Contains essential info for store functionality such as session, checkout info, and anti-tampering data.",path:"/",domain:"",provider:"Shopify",deletable:false,expires:"31536000",type:"type_0",recommendation:"0",editable:false,set:"0"},_shopify_essential_:{description:"Opaque device token for essential purposes.",path:"/",domain:"",provider:"Shopify",deletable:false,expires:"31536000",type:"type_0",recommendation:"0",editable:false,set:"0"},_shopify_test:{description:"Used to check cookie capabilities on the client.",path:"/",domain:"",provider:"Shopify",deletable:false,expires:"60",type:"type_0",recommendation:"0",editable:false,set:"0"},_tracking_consent:{description:"Stores a user's privacy preferences if merchant has region privacy rules.",path:"/",domain:"",provider:"Shopify",deletable:false,expires:"31536000",type:"type_0",recommendation:"0",editable:false,set:"0"},"auth_state_<>":{description:"Stores authentication state before redirecting customers to third party for authentication.",path:"/",domain:"",provider:"Shopify",deletable:false,expires:"1500",type:"type_0",recommendation:"0",editable:false,set:"0"},cart:{description:"Contains information related to the user's cart.",path:"/",domain:"",provider:"Shopify",deletable:false,expires:"1209600",type:"type_0",recommendation:"0",editable:false,set:"0"},cart_currency:{description:"After checkout, initializes a new cart with the same currency used.",path:"/",domain:"",provider:"Shopify",deletable:false,expires:"1209600",type:"type_0",recommendation:"0",editable:false,set:"0"},discount_code:{description:"Stores a discount code from URL to apply to next checkout.",path:"/",domain:"",provider:"Shopify",deletable:false,expires:"0",type:"type_0",recommendation:"0",editable:false,set:"0"},keep_alive:{description:"Used when international domain redirection is enabled to detect first request of a session.",path:"/",domain:"",provider:"Shopify",deletable:false,expires:"0",type:"type_0",recommendation:"0",editable:false,set:"0"},localization:{description:"Localizes the cart to the correct country.",path:"/",domain:"",provider:"Shopify",deletable:false,expires:"1209600",type:"type_0",recommendation:"0",editable:false,set:"0"},login_with_shop_finalize:{description:"Facilitates login with Shop.",path:"/",domain:"",provider:"Shopify",deletable:false,expires:"300",type:"type_0",recommendation:"0",editable:false,set:"0"},shopify_pay:{description:"Logs a buyer into Shop Pay when they return to checkout on the same store.",path:"/",domain:"",provider:"Shopify",deletable:false,expires:"31536000",type:"type_0",recommendation:"0",editable:false,set:"0"},storefront_digest:{description:"Digest of storefront password allowing preview while password protected.",path:"/",domain:"",provider:"Shopify",deletable:false,expires:"31536000",type:"type_0",recommendation:"0",editable:false,set:"0"},_shop_app_essential:{description:"Contains essential information for the correct functionality of Shop.app.",path:"/",domain:"shop.app",provider:"Shopify",deletable:false,expires:"31536000",type:"type_0",recommendation:"0",editable:false,set:"0"},privacy_signal:{description:"Remembers a user's privacy choices about cookies and online tracking based on regional privacy laws.",path:"/",domain:"",provider:"Shopify",deletable:false,expires:"31536000",type:"type_0",recommendation:"0",editable:false,set:"0"},"__Host-_identity_session_same_site":{description:"Merchant authentication: Identity session cookie (SameSite).",path:"/",domain:"shopify.com",provider:"Shopify",deletable:false,expires:"0",type:"type_0",recommendation:"0",editable:false,set:"0"},gdpr_accepted:{description:"Used in connection with GDPR acceptance.",path:"/",domain:"oberlo.com",provider:"Shopify",deletable:false,expires:"0",type:"type_0",recommendation:"0",editable:false,set:"0"},Cloudflare:{description:"Cloudflare edge routing for site reliability and security (may set essential cookies such as __cf_bm or cf_clearance depending on configuration).",path:"/",domain:"",provider:"Cloudflare",deletable:false,expires:"0",type:"type_0",recommendation:"0",editable:false,set:"0"}};window.GDPR_LC=window.GDPR_LC||{};window._GDPR_VAL=window._GDPR_VAL||{};window.BC_JSON_ObjectBypass=window.BC_JSON_ObjectBypass||{};window.GDPR_googleFacebookPixelCustomSourceTagManagerTrackData=window.GDPR_googleFacebookPixelCustomSourceTagManagerTrackData||{};window.BC_GDPR_2ce3a13160348f524c8cc9=window.BC_GDPR_2ce3a13160348f524c8cc9||{};window.BC_GDPR_CustomScriptForShop=window.BC_GDPR_CustomScriptForShop||"";window.bc_tagManagerTasks=window.bc_tagManagerTasks||{};window.bc_tagManagerData=window.bc_tagManagerData||{};window.customCookies=window.customCookies||{};window.GDPR_LC.userConsentSetting=window.GDPR_LC.userConsentSetting||null;(function(t,i){var e=Object.keys(i);e.forEach(function(e){if(typeof t[e]==="undefined"){t[e]=i[e]}})})(window.BC_JSON_ObjectBypass,M);var i=function(e){var t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));if(t){return t[2]}return null};function H(){var e=i("_bc_c_set");if(e!==null){try{var t=atob(e);window.GDPR_LC.userConsentSetting=JSON.parse(t);document.dispatchEvent(new CustomEvent("GDPR_LC:userConsentSetting",{detail:window.GDPR_LC.userConsentSetting}))}catch(e){window.GDPR_LC.userConsentSetting=null}}}H();function j(e=false){window.GDPR_LC.DEBUGGER=window.GDPR_LC.DEBUGGER||[];window.GDPR_LC.DEBUGGER.push(GDPR_LC.Cookies.list);let t=Date.now();if(e){if(GDPR_LC!==undefined&&GDPR_LC.Cookies!==undefined&&GDPR_LC.Cookies.list!==undefined&&GDPR_LC.Cookies.list._bc_c_set!==undefined&&GDPR_LC.Cookies.list._bc_c_set.lastChange!==undefined){t=GDPR_LC.Cookies.list._bc_c_set.lastChange}}var n={date:t,version:O};Object.keys(GDPR_LC.Cookies.list).forEach(function(e){var t=GDPR_LC.Cookies.list[e];var i=t.type;if(typeof n[i]==="undefined"){n[i]={true:0,false:0}}if(t.userSetting===true){n[i]["true"]=1}else{n[i]["false"]=1}});window.GDPR_LC.userConsentSetting=n;document.dispatchEvent(new CustomEvent("GDPR_LC:userConsentSetting",{detail:n}));window.GDPR_LC.DEBUGGER.push(GDPR_LC.Cookies.list);window.GDPR_LC.DEBUGGER.push(n);window.GDPR_LC.DEBUGGER.push(window.GDPR_LC.userConsentSetting);var i=btoa(JSON.stringify(n));if(GDPR_LC!==undefined&&GDPR_LC.Cookies!==undefined&&GDPR_LC.Cookies.list!==undefined&&GDPR_LC.Cookies.list._bc_c_set!==undefined){GDPR_LC.Cookies.list._bc_c_set.update("value",i,!1)}document.cookie="_bc_c_set="+i+";path=/;max-age=2592000;SameSite=Lax;"}(function(){var r=function(e,t){if(e!==undefined){return e}else{return t}};GDPR_LC.console=function(){var o=this;var s=GDPR_LC.console,i="GDPR_LC.console";this.d=!1;this.m={log:{},error:{}};this.dc={log:"color:green",error:"color:red"};this.s=function(e,t){e=r(e,!1);t=r(t,!1);if(e){if(t!==!1){sessionStorage.setItem(i,t);this.d=t}}if(t===!1&&i in sessionStorage){this.sd(sessionStorage.getItem(i))}if(s===_){s=GDPR_LC.console}this.i()};this.i=function(){var e=this.gd();if(e!==!1&&e!==_){e=e.toLowerCase();console.log("##################### BEECLEVER GMBH KOBLENZ #####################"+"\n DEBUG MODE "+e.toUpperCase()+"\n reset console mode with command GDPR_LC.console.reset()");if(e==="any"){this.oc("log");this.oc("error")}else{this.oc(e)}}};this.pmh=function(e,t,i){if(this.gd()===e||this.gd()==="any"){this.mo(t,i,e)}else{this.po(e,[t,i])}};this.bc_l=function(e,t){this.pmh("log",e,t)};this.e=function(e,t){this.pmh("error",e,t)};this.oc=function(i){var n=o.m;if(s!==_&&n!==_){v(n[i]).forEach(function(e){var t=n[i][e];if(t!==_){mo(t[0],t[1],i);delete n[i][e]}})}};this.mo=function(e,t,i){i=r(i,!1);if(this.gd()!==!1){console.log("%c### "+e,this.dc[i]);if(t!==_){console.log("%c"+t,this.dc[i])}}};this.po=function(e,t){if(e!==_&&e!==null&&e!==""&&typeof e==="string"){var i=Date.now();if(this.m[e]!==_){this.m[e][i]=t}else{this.m[e]={};this.m[e][i]=t}}};this.sd=function(e){this.d=e};this.gd=function(){return this.d};this.r=function(){sessionStorage.removeItem(i)};this.s();return{start:function(e,t){if(o!==_&&o.s!==_&&typeof o.s==="function"){o.s(e,t)}},reset:function(){if(o!==_&&o.r!==_&&typeof o.r==="function"){o.r()}},log:function(e,t){if(o!==_&&o.bc_l!==_&&typeof o.bc_l==="function"){o.bc_l(e,t)}},error:function(e,t){if(o!==_&&o.e!==_&&typeof o.e==="function"){o.e(e,t)}}}}();var e=!1,l=document,u=window,d=GDPR_LC,_=undefined,f=null,n="object",i=sessionStorage,a=localStorage,c={1:"BC_GDPR_2ce3a13160348f524c8cc9",2:"BC_GDPR_CustomScriptForShop",3:"_GDPR_VAL",4:"bc_tagManagerTasks",5:"bc_tagManagerData",6:"customCookies",7:"GDPR_LC_Version",8:"GDPR_googleFacebookPixelCustomSourceTagManager",9:"GDPR_legal_cookie",S:"Shopify",s:"shopify"};var o=function(e){var t=!1;try{t=JSON.parse(e)}catch(e){GDPR_LC.console.error("$JP",m)}return t};var s=function(e,t){var i=!1;t=r(t,!1);if(!!t){try{i=JSON.stringify(e)}catch(e){GDPR_LC.console.error("$JS",e)}}return i};var t=function(e,t){return o(t.getItem(e))};var p=function(e,t,i){if(typeof t===n){t=s(t,!0)}i.setItem(e,t)};var h=function(e,t){p(e,t,i)};var g=function(e){return t(e,i)};var C=function(e,t){p(e,t,a)};var y=function(e){return t(e,a)};var k=function(e){a.removeItem(e)};var b=function(e,t){return e.querySelector(t)};var S=function(e,t){return Array.from(e.querySelectorAll(t))};var v=function(e){if(typeof e!=="object"||e===null){return!1}return Object.keys(e)};var D=function(e,t,i){t=r(t,!1);i=r(i,"flex");if(t&&e!==null){e.style.opacity=1;e.style.display=i;e.style.visibility="visible"}else if(!t&&e!==null){e.style.opacity=0;e.style.display="none";e.style.visibility="hidden"}};var w=function(){return BC_JSON_ObjectBypass!==_&&BC_JSON_ObjectBypass["_bc_c_set"]!==_&&BC_JSON_ObjectBypass["_bc_c_set"]["ShopifyMinConsent"]!==_&&BC_JSON_ObjectBypass["_bc_c_set"]["ShopifyMinConsent"]===true};window.GDPR_whiteList=window.GDPR_whiteList||Object.keys(M);function P(t){var i=false;window.GDPR_whiteList.forEach(function(e){if(e===t){i=true}});return i}var G={bc_whitelisted_names:["_identity_session","_master_udr","_merchant_essential","_secure_admin_session_id","_secure_admin_session_id_csrf","_shopify_essential","_shopify_essential_","_shopify_test","_tracking_consent","auth_state_<>","cart","cart_currency","discount_code","keep_alive","localization","login_with_shop_finalize","shopify_pay","storefront_digest","_shop_app_essential","privacy_signal","__Host-_identity_session_same_site","gdpr_accepted","Cloudflare"],isWhitelisted:function(t){if(typeof t!=="string"||this.bc_whitelisted_names.includes(t.toLowerCase())){return true}this.bc_whitelisted_names.forEach(function(e){if(e.toLowerCase().replace("<>","").includes(t.toLowerCase())){return true}});return false},set:function(e,t){if(this.isWhitelisted(e)){return}l.cookie=e+t},remove:function(t){if(this.isWhitelisted(t)){return}var e=0,i=t in d.docCookies,n,o=[],s=u[c[3]].global.domains;o=location.pathname.split("/");o[0]="/";n=o.shift();while(i&&e<3){if(location.host.includes("myshopify.com")){G.set(t,"=;expires=Thuu, 01 Jan 1970 00:00:01 GMT;SameSite=None; Secure;");G.set(t,"=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;SameSite=None; Secure;");G.set(t,"=;path="+n+"; domain=.myshopify.com;expires=Thu, 01 Jan 1970 00:00:01 GMT;SameSite=None; Secure;")}else{s.forEach(function(e){G.set(t,"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;SameSite=None; Secure;");G.set(t,"=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;SameSite=None; Secure;");G.set(t,"=;path="+n+"; domain="+e+";expires=Thu, 01 Jan 1970 00:00:01 GMT;SameSite=None; Secure;")})}d.setCookiesFromDocument();i=t in d.docCookies;if(i){e++}else{break}n+=o.shift()+"/"}var r="remove";if(i){r="not removed"}GDPR_LC.console.log("Cookie => "+r,t)}};e=!0;if(e||!1){(function(){if(!("remove"in Element.prototype)){Element.prototype.remove=function(){if(this.parentNode){this.parentNode.removeChild(this)}}}var a=window.$bc_polyfills||{};a.scope={};a.arrayIteratorImpl=function(e){var t=0;return function(){return tt&&(t=Math.max(t+n,0));t Custom scripts: "+t+" is not a function. Please check, in theme snippets => load-metafields.liquid, the name from custom function, and from custom cookie.","color:red;font-size:bold")}}}catch(e){console.log("%cGDPR Legal Cookie => Custom scripts: "+t+" is not a valid function. Please check the custom function.","color:red")}})}}}R()}(function(){var e=!1;if(v(u[c[1]]).length===0&&c[1]in a){e=y(c[1]);if(!!e){u[c["1"]]=e}}if(v(u[c[5]]).length===0&&c[5]in a){e=y(c[5]);if(!!e){u[c[5]]=e}}if(v(u[c[6]]).length===0&&c[6]in a){e=y(c[6]);if(!!e){u[c[6]]=e}}if(v(u[c[4]]).length===0&&c[4]in a){e=y(c[4]);if(!!e){u[c[4]]=e}}if(typeof u[c[2]]!=="function"&&c[2]in a){e=localStorage.getItem(c[2]);if(e!=="[null]"){if(!!e){if(u.BC_GDPR_LEGAL_custom_cookies===_){u.BC_GDPR_LEGAL_custom_cookies=GDPR_LC.Cookies}L();e=e.replace("function "+c[2]+" () {","");e=e.substr(0,e.length-1);u[c[2]]=new Function(e)()}}}if("GDPR_legal_cookie"in a){if(u.GDPR_LC===_){u.GDPR_LC={}}if(u.GDPR_LC.Cookies===_){u.GDPR_LC.Cookies={}}if(u.GDPR_LC.Cookies.list){u.GDPR_LC.Cookies.list=y("GDPR_legal_cookie")}}})();d.localStorageDataExist=c[9]in a;!function(){if(u.GDPR_LC_Banner===_){!function(){var e=b(l,"div#banner-wrapper");if(e!==f){D(e,!1)}}()}}();d.g={groupFilter:function(){var t=[];if(u.thirdPartyScriptDefinition!==_){u.thirdPartyScriptDefinition.forEach(function(e){if(e.group!==undefined){if(!t.includes(e.group)){t.push(e.group)}}})}return t},defineDynamicGroup:function(){var e=this.groupFilter();if(e.length>0){e.forEach(function(e){if(!d.g.cG.hasOwnProperty(e)){d.g.cG[e]={}}d.g.setDynamicCookiesToGroup(e)})}},getGroupObject:function(e,t){var i={},n=t.cookie;i.group=e;i.selected=t.declaration>0?!1:!0;if(document.location.host!==t.domain){n=t.cookie+"$%bc%$"+t.domain}return{name:n,cObject:i}},setDynamicCookiesToGroup:function(i){if(u.thirdPartyScriptDefinition!==_){u.thirdPartyScriptDefinition.forEach(function(e){if(e.group!==undefined&&e.group===i){var t=d.g.getGroupObject(i,e);d.g.cG[i][t.name]=t.cObject}})}},c:function(e){var t=d.g.cHG(e);if(t!==!1){if(GDPR_LC.Cookies!==_&&GDPR_LC.Cookies.list!==_){var i=v(t);var n=v(t[i]);var o=d.g.cUc(e);this.setUserConsentForCookieGroup(i,n,o);if(t[c.S]!==_){return{shopifyTracking:o}}}return!0}return!1},setUserConsentForCookieGroup:function(i,e,n){e.forEach(function(e){if(GDPR_LC.Cookies.list[e]!==_){var t=d.g.gN(e);if(t!==!1){t.checked=n}}d.g.cG[i][e].selected=n})},gN:function(e){var t=b(l,'#banner-wrapper .banner-body__content [id="input_'+e+'"]');if(t===f){GDPR_LC.console.error("GDPR_LC.groups => getCookieNode > node _","#input_"+e);return!1}return t},cUc:function(e){var t=d.g.gN(e);var i=!1;if(t!==!1){i=t.checked}return i},cHG:function(e){var t=v(d.g.cG);var i=!1;for(var n=0;n1e3){GDPR_LC.lastConsentSetting=Date.now();if(window?.Shopify?.customerPrivacy?.setTrackingConsent&&GDPR_LC.userConsentSetting){const t=function(t){if(typeof GDPR_LC?.userConsentSetting?.type_0==="object"){if(typeof GDPR_LC.userConsentSetting[t]==="object"){return!GDPR_LC.userConsentSetting[t].false&&!!GDPR_LC.userConsentSetting[t].true}return false}return Object.keys(GDPR_LC.Cookies.list).filter(e=>GDPR_LC.Cookies.list[e].type===t&&!GDPR_LC.Cookies.list[e].userSetting).length===0};const i={analytics:t("type_1"),marketing:t("type_2"),sale_of_data:t("type_2"),preferences:t("type_0")};window.Shopify.customerPrivacy.setTrackingConsent(i,()=>{})}}}catch(e){GDPR_LC.console.error("GDPR_LC.ShopifyConsentTracking => setTrackingConsent",e)}},gTC:function(){try{if(d.SCT.tCI){return u[c.S].trackingConsent.gTC()!=="no_interaction"}}catch(e){GDPR_LC.console.error("GDPR_LC.ShopifyConsentTracking => getTrackingConsent",e)}return!1},hasMinConsent:function(){var e=false;if(w()){if(GDPR_LC!==_&&GDPR_LC.userConsentSetting!==null&&GDPR_LC.userConsentSetting.type_1!==null&&GDPR_LC.userConsentSetting.type_1.true!==null){e=GDPR_LC.userConsentSetting.type_1.true===1}if(GDPR_LC!==_&&GDPR_LC.userConsentSetting!==null&&GDPR_LC.userConsentSetting.type_2!==null&&GDPR_LC.userConsentSetting.type_2.true!==null){e=GDPR_LC.userConsentSetting.type_2.true===1||e===true}}return e},uCT:function(){try{if(d.SCT.tCI||d.SCT.hasMinConsent()){return u[c.S].trackingConsent.userCanBeTracked()}}catch(e){GDPR_LC.console.error("GDPR_LC.ShopifyConsentTracking => userCanBeTracked",e)}return!1},cTCI:function(){if(u[c.S]!==_){if(u[c.S].trackingConsent!==_){return!0}}return!1}};d.ShopifyTrekkie=function(){var e=d.SCT.gUT();var t=o();GDPR_LC.SCT.sTC(t);var i=!1;if(e===!0&&t){var n=e.userCanBeTracked&&e.userTrackingConsent;if(n&&t){i=!0}}else if(t){i=!0}else{GDPR_LC.SCT.sTC(!1)}if(i){r()}function o(){if(w()){return d.SCT.hasMinConsent()}var t=!1,i="userSetting",n=!1;var e=v(GDPR_LC.g.cG[c.s]);if(GDPR_LC.Cookies===_){if("GDPR_legal_cookie"in a){n=y("GDPR_legal_cookie")}}if(GDPR_LC.Cookies!==_&&GDPR_LC.Cookies.list!==_&&GDPR_LC.Cookies.list!==null){n=GDPR_LC.Cookies.list}if(n!==!1&&e!==_){var o=v(n);e.forEach(function(e){if(!!n[e]&&n[e][i]&&n[e]!==_){t=!0}})}if(t===false&&window.GDPR_LC.userConsentSetting!==null&&window.GDPR_LC.userConsentSetting!==undefined){var s=window.GDPR_LC.userConsentSetting;var r=false;if(s.type_1!==null&&s.type_1?.false!==undefined&&s.type_1?.false===0||s.type_2!==undefined&&s.type_2?.false!==undefined&&s.type_2?.false===0){r=true}t=r}return t}function s(){var t=!1;S(l,"script.analytics").filter(function(e){if(e.innerHTML.indexOf("trekkie")!==-1){t=e}});if(t===!1){GDPR_LC.console.error("GDPR_LC.ShopifyTrekkie => getTrekkieScript > not found Shopify trekkie script:","script.analytics")}return t}function r(){var e=s();if(e!==!1&&typeof ShopifyAnalytics.lib.integrations!=="object"){delete window.trekkie;GDPR_LC.console.log("shopify trekkie re-init");var t=new Function(e.innerHTML.toString());t()}}};GDPR_LC.ShopifyTrekkie();GDPR_googleFacebookPixelCustomSourceTagManagerTrackData=GDPR_googleFacebookPixelCustomSourceTagManagerTrackData||{};if(u._GDPR_TREKKI===undefined){u._GDPR_TREKKI={}}(function e(){u._GDPR_TREKKI.update=function(){var i={};v(u._GDPR_TREKKI).forEach(function(e){var t={};t[e]=u._GDPR_TREKKI[e];Object.assign(i,t)});h("_GDPR_TREKKI",i);u._GDPR_TREKKI.resetFromSession()};u._GDPR_TREKKI.resetFromSession=function(){var t={};if("_GDPR_TREKKI"in sessionStorage){t=g("_GDPR_TREKKI")}if(!!t){v(t).forEach(function(e){u._GDPR_TREKKI[e]=t[e]})}}})();l.bc_timer=u.performance.now();l.bc_timestamp=Date.now();l._GDPR_Setting={scriptPath:"https://gdpr-legal-cookie.beeclever.app"};u[c[3]]=u[c[3]]={global:{exprire_BC_COOKIE:30,localStorage:"GDPR_legal_cookie",delExpires:new Date(1e3).toUTCString(),expires:864e5,defaultSetting:0,defaltInterval:100,defaultIntervalMaxLength:1e3,defaultCountIterate:5,defaultEndIterate:15,defaultTimerCount:60,currentIteration:0,hasSetting:!1,domains:["www."+location.host.replace("www.",""),".www."+location.host.replace("www.","")],bannerIsSet:!1,timerIsSet:!1,customScriptSet:!1,googleSet:!1,facebookSet:!1,googleElements:[],flags:{},checkCookieStackInit:!1,inProgress:false,bannerOpen:false},Defaults:{providerDefaults:{0:"Shop provider",1:"Third-Party"},recommendationDefaults:{0:"Essential",1:"Statistik",2:"Marketing"},duration:"Session"},Cookie:{emptyDescription:"",defaultOwner:"Shopify",defaultRecommendation:0,defaultDuration:"Session",defaultRecommendationUnknowCookie:2,translations:{default:{type_0:"Essentiell",type_1:"Analytics & Marketing"},type_0:"Essentiell",type_1:"Analytics",type_2:"Marketing"}},const:{GDPR_legal_cookie_setList:!1,GDPR_legal_cookie:{list:{cookieList:[]}},observedElements:[],GDPR_banner_wrapper:f,GDPR_cookie_banner_flag:f,GDPR_cookie_tabs:f,GDPR_cookie_event:{isSet:!1}},extensions:{bc_XMLRequests:{isLoaded:!1,path:l._GDPR_Setting.scriptPath+"/js/extensions/xmlRequest.js"},bc_GDPR_TREKKI:{isLoaded:!1,path:l._GDPR_Setting.scriptPath+"/js/extensions/GDPR_trekkie.js"},GDPR_googleFacebookPixelCustomSourceTagManager:{isLoaded:!1,path:l._GDPR_Setting.scriptPath+"/js/extensions/"+c[8]+".js"}},log:{level_1:[]}};d.docCookies={};GDPR_LC.Cookies=GDPR_LC.Cookies||{};GDPR_LC.Cookies.list=GDPR_LC.Cookies.list||{};d.setCookiesFromDocument=f;d.setDocCookies=f;!function(){var e=l.location.host.split(".");e[e.length-2]=e[e.length-2]+"."+e.pop();var t=e.pop();function i(e){u[c[3]].global.domains.push(e)}i(t);i("."+t);while(e.length>0){t=e.pop()+"."+t;i(t);i("."+t)}}();window._GDPR_TREKKI.resetFromSession();window.GDPR_HELPER={saveAndUpdateData:function(){if(_GDPR_VAL.global.bannerOpen===false&&_GDPR_VAL.global.inProgress===false){_GDPR_VAL.global.inProgress=!0;C("GDPR_legal_cookie",GDPR_LC.Cookies.list);_GDPR_VAL.global.inProgress=!1}},scriptExist:function(t){S(l,"script").forEach(function(e){if(e.hasAttribute("src")&&e.getAttribute("src")!==f){if(e.getAttribute("src").includes(t)){return!0}}});return!1},loadScript:function e(t,i,n){n=r(n,!0);i=i+t;if(u.GDPR_HELPER.scriptExist(i)===!1){var o=l.createElement("script");o.async=n;o.setAttribute("whiteListed",!0);o.src=i;l.head.appendChild(o)}},loadExtensions:function e(){if(bc_tagManagerData.facebook.load.params===undefined&&bc_tagManagerData.google.load.params.length===0){return}var i=!1;var t=u[c[3]].extensions[c[8]];if(!t.isLoaded&&GDPR_LC.Cookies!==_&&GDPR_LC.Cookies.list!==_){var n=v(u[c[4]])||[];n.forEach(function(e){var t=GDPR_LC.Cookies.list[e];if(t!==_&&t.userSetting&&t.name!=="_bc_c_set"){i=!0}});if(i&&!u.GDPR_HELPER.scriptExist(t.path)){u.GDPR_HELPER.loadScript(t.path,"",!1);t.isLoaded=!0}var o=setInterval(function(){if(typeof GDPR_googleFacebookPixelCustomSourceTagManager==="function"){GDPR_googleFacebookPixelCustomSourceTagManager("any");clearInterval(o)}},200)}}};(function(){GDPR_LC.Cookies.settingExist=!1;GDPR_LC.Cookies.getSettingExist=function(){return GDPR_LC.Cookies.settingExist};GDPR_LC.Cookies.setSettingExist=function(e){GDPR_LC.Cookies.settingExist=e};GDPR_LC.Cookies.cookieTypes=[];GDPR_LC.Cookies.setCookieTypes=function(e){var t=!1;for(var i=0;i0;){--t;var i=e[t],n=i.indexOf("=");if(n!==-1){var o=i.substring(0,n).replace(/\s+/g,"");d.docCookies[o]=i.substring(n+1).replace(/\s+/g,"")}}}};d.setCookiesFromDocument=function(){d.setDocCookies();for(var e in d.docCookies){var t=GDPR_LC.Cookies.list[e],i={},n="value",o="update",s="isDocumentCookie";i[n]=d.docCookies[e];if(t===_){GDPR_LC.console.log("new document Cookie",e);new I(e,i,!0)}else if(t[n]!==i[n]){if(t[o]!==_){t[o](n,i[n]);t[o](s,!0)}}}};var T={shopifyCookies:v(GDPR_LC.g.cG.shopify),customizerCookies:["_design_overrides_token","identity-state","preview_theme","new_theme_editor_disabled","request_method","online_store_editor_user_locale"],cookieList:[],pushToWhitList:function(){this.createCookieList();this.push(this.cookieList,window.GDPR_whiteList)},resetDefault:function(){if(GDPR_LC.Cookies.list[this.customizerCookies[0]]!==_){this.customizerCookies.forEach(function(e){delete GDPR_LC.Cookies.list[e]})}},createCookieList:function(){window.GDPR_whiteList=window.GDPR_whiteList||[];this.push(this.shopifyCookies,this.cookieList);this.push(this.customizerCookies,this.cookieList)},push:function(e,t){e.forEach(function(e){t.push(e)})}};T.createCookieList();if(window.Shopify!==_&&Shopify.preview_host!==_){T.pushToWhitList()}function E(e){if(window.GDPR_LC.userConsentSetting!==null&&window.GDPR_LC.userConsentSetting[e.type]!==undefined){if(window.GDPR_LC.userConsentSetting[e.type].true===1&&window.GDPR_LC.userConsentSetting[e.type].false===0){return!0}else{return!1}}else{return e.userSetting}}var I=function e(t,i,n){let o=false;window.GDPR_whiteList.forEach(function(e){if(e===t){o=true}else{if(e.includes("<>")){if(t.startsWith(e.split("<>")[0])){o=true;if(!!M[e]||!!BC_JSON_ObjectBypass[e]){i=Object.assign(i,M[e]||BC_JSON_ObjectBypass[e])}}}}});this.name=t;this.value="";if(i.value!==_&&i.value!==_){this.value=i.value}this.description=i.description||"";this.domain=i.domain||l.location.hostname;this.duration=i.duration||"Session";this.expires=i.expires||0;this.secure="";if(i.secure!==undefined){this.secure=i.secure}this.sameSite=i.sameSite||"Lax";this.lastChange=i.lastChange||Date.now();this.path=i.path||"/";this.provider=i.provider||"Third-party";this.recommendation=2;if(i.recommendation!==undefined){this.recommendation=parseInt(i.recommendation)}this.countRecursions=0;this.set=2;if(i.set!==_){this.set=+i.set}this.type=i.type||"type_"+this.set;if(i.type!==undefined&&i.type!=="type_"+this.set){this.type="type_"+this.set}this.isDocumentCookie=n;if(!GDPR_LC.Cookies.includesType(this.type)&&t!=="_bc_c_set"){GDPR_LC.Cookies.cookieTypes.push(this.type)}if(BC_JSON_ObjectBypass._bc_c_set!==_&&(BC_JSON_ObjectBypass._bc_c_set.optIn==="!1"||BC_JSON_ObjectBypass._bc_c_set.optIn===!1)){this.userSetting=!0}else{if(i.userSetting===!0){this.userSetting=!0}else{this.userSetting=+this.set===0}}if(GDPR_LC.Cookies!==_&&!this.userSetting&&GDPR_LC.Cookies.list!==_&&GDPR_LC.Cookies.list._bc_c_set!==_){var s=GDPR_LC.Cookies.list._bc_c_set;if(s.type_all!==_){this.userSetting=s.type_all}else if(s[this.type]!==_){this.userSetting=s[this.type]}}if(t==="_bc_c_set"){var r=this;v(i).forEach(function(e){if(r[e]===_&&e!=="ShopifyMinConsent"){r[e]=i[e]}else if(e==="ShopifyMinConsent"){r[e]=window.BC_JSON_ObjectBypass._bc_c_set.ShopifyMinConsent||false}})}this.isInTab=!1;this.all=i.all||!1;GDPR_LC.Cookies.setCookieTypes=this.set;if(GDPR_LC.localStorageDataExist===false){this.userSetting=E(this)}GDPR_LC.Cookies.list[this.name.toString()]=this;this.remove()};I.prototype={setCountRecursions:function e(){this.countRecursions++},resetRecursion:function e(){this.countRecursions=0},update:function e(t,i,n){if(n===_){n=!1}if(i!==_&&this[t]!==_&&this[t].toString()!==i.toString()){this[t]=i;this.setUpdate(this.userSetting,n);window.GDPR_HELPER.saveAndUpdateData()}this.remove()},setUpdate:function e(t,i){i=i||!1;if(i){this.lastChange=Date.now();this.userSetting=t}},toString:function e(){var t="="+this.value+";",i="path="+this.path+";",n="",o="",s="",r="";if(this.domain!==_&&this.domain!==window.location.host){n="domain="+this.domain.replace("www.","")+";"}if(this.expires>0){o="max-age="+this.expires+";"}if(this.secure){s="Secure;"}if(this.sameSite){r="SameSite="+this.sameSite+";"}return t+i+n+o+s+r},remove:function e(){if(this.set===0||this.userSetting){return}if(this.name.includes("cmplc")){return}G.remove(this.name);d.CookieStack.push(this.name)},recover:function e(){d.setCookiesFromDocument();if(this.name in d.docCookies&&this.name!=="_bc_c_set"){this.setUpdate(!0)}else{if(this.value!==""||this.isDocumentCookie||this.name==="_bc_c_set"){G.set(this.name,this.toString());GDPR_LC.console.log("Cookie => recover",this.name,this.toString())}}},getExpires:function e(){var t="Session";if(this.expires!=f&&parseInt(this.expires)!==0){var i=parseInt(this.expires);var n=Math.floor(i/(3600*24));i-=n*3600*24;var o=Math.floor(i/3600);i-=o*3600;var s=Math.floor(i/60);i-=s*60;t="";if(n!==0){t=n+"d"}else if(o>0){t=o+"h"}else if(s>0){t=s+"m"}else if(i>0){t=i+"s"}}return t},template:function e(t,i){var n=GDPR_LC.g.cHG(this.name),o=data_gdpr_legal_banner_content,s="",r="",a="",c="",e="",l,f=this.name;if(this.userSetting){s=='checked=""'}if(+this.set>0){r=""+""+o.buttons.accept_single+""+''+'
'+'"+"
"+""+""}if(n!==!1){a=""+"Group"+""+v(n)[0]+""+""}if(v(n)[0]&&v(n)[0].includes("google")){if(!o.hasOwnProperty("google_privacy_label")){o.google_privacy_label="More information"}if(!o.hasOwnProperty("google_privacy_link_title")){o.google_privacy_link_title="Privacy at Google"}c=""+""+o.google_privacy_label+""+''+o.google_privacy_link_title+""+""}if(this.name.indexOf("$%bc%$")!==-1){f=this.name.split("$%bc%$")[0]}l=o.tabs.domain!==undefined?o.tabs.domain:"Domain";let u=this.provider;let d=i[this.name]?.description||this.description||" ";let _=this.getExpires();return`${r}${a||""}${c||""}
${o.tabs.name}
${o.tabs.provider}${u}
${o.tabs.description}${d}
${l}${this.domain}
${o.tabs.duration}${_}
`}};l.Cookie=l.Cookie||I;d.CookieStackFunction=function(){this.size=0;this.cookies={}};d.CookieStackFunction.prototype={delete:function e(t){var i=d.CookieStack;delete i.cookies[t];i.setSize()},includes:function e(t){return t.toString()in d.CookieStack.cookies},size:function e(){return d.CookieStack.size},setSize:function e(){d.CookieStack.size=Array.from(Object.keys(d.CookieStack.cookies)).length},push:function e(t){if(t==="_bc_c_set"){return}var i=d.CookieStack;if(!(t in i.cookies)){i.cookies[t.replace(/\s+/g,"")]=!1;i.setSize()}},checkStack:function e(){if(!u[c[3]].global.checkCookieStackInit){u[c[3]].global.checkCookieStackInit=!0;d.setCookiesFromDocument();var t=d.CookieStack,i=GDPR_LC.Cookies.list;v(t.cookies).forEach(function(e){t.updateCookieStack(e);if(e in i){if(i[e].userSetting){t["delete"](e)}else{i[e].remove()}}if(!e in GDPR_LC.docCookies){t["delete"](e)}});u[c[3]].global.checkCookieStackInit=!1}},scriptAddOnload:function e(){for(var t in d.srcList){var i=b(l,'[src="'+t+'"]');if(i!==f){delete d.srcList[t];d.CookieStack.checkStack("init from script tag")}}},updateCookieStack:function e(t){var i=d.CookieStack,n=GDPR_LC.Cookies.list[t.replace(/\s+/g,"")],o=i.includes(t);if(!(t in d.docCookies)){if(o){i["delete"](t)}if(n!==_&&n.setUpdate!==_){n.setUpdate(!1)}}else{if(!o){i.push(t)}if(n.countRecursions<3){n.remove();n.setCountRecursions()}}}};d.CookieStack=new d.CookieStackFunction;var B=function(){k(c[2]);k(c[3]);k(c[1]);k(c[4]);k(c[6]);k(c[5]);k(c[8]);k("GDPR_Trekkie");k(c[7]);console.log("Update GDPR_legal_cookie LocalStorage element");return!0};(function(){(function(){for(var e in BC_JSON_ObjectBypass){if(!GDPR_LC.Cookies.list.hasOwnProperty(e)){new I(e,BC_JSON_ObjectBypass[e],!1)}}})();(function(){if(u.thirdPartyScriptDefinition!==_){var e=document.location.host;for(var t=u.thirdPartyScriptDefinition.length-1;t>0;t--){var i=u.thirdPartyScriptDefinition[t];var n=i.cookie;var o=i.provider||"";var s=i.description||"";var r=i.domain;var a=i.expires||0;var c=i.expires||0;var l=i.declaration;if(e!==r){n=n+"$%bc%$"+r}GDPR_LC.console.log("name",n,"domain",r,"cookieName",n);if(!GDPR_LC.Cookies.list.hasOwnProperty(n)){var f={};f.provider=o;f.description=s;f.domain=r;f.expires=a;f.duration=c;f.set=l;new I(n,f,!1)}else{continue}}d.thirdPartyScriptsIsSet=true}})();(function(){if("GDPR_legal_cookie"in localStorage){var i=JSON.parse(localStorage.getItem("GDPR_legal_cookie"));Array.from(Object.keys(i)).forEach(function(e){var t=e.toString();new I(t,i[t],false)})}})();if(window.Shopify!==_&&Shopify.preview_host===undefined){T.resetDefault()}GDPR_LC.setCookiesFromDocument()})();var A=function e(){this.shopifyTrekkieIsInit=!1;this.defaultTime=30;this.maxTime=2e3;this.timerIsSet=!1;this.iterateTimer=f;this.runs=0;this.maxRuns=3};A.prototype={start:function e(){if(l.CookieHandler.timerIsSet===!1){l.CookieHandler.TimeOutManager()}},reset:function e(){l.bc_timer=u.performance.now();l.CookieHandler.runs=0;l.CookieHandler.defaultTime=100;if(l.CookieHandler.timerIsSet===!1){l.CookieHandler.start()}},Timer:function e(){if(!l.CookieHandler.timerIsSet){l.CookieHandler.timerIsSet=!0;var t=l.CookieHandler.defaultTime;var i=setInterval(function(){d.CookieStack.checkStack();l.CookieHandler.currentIteration++;if(l.CookieHandler.runs0){if(l.CookieHandler.runs>0){l.CookieHandler.runs--}else{l.CookieHandler.runs=0}}else{l.CookieHandler.runs=l.CookieHandler.maxRuns}clearInterval(i);t+=t/2;l.CookieHandler.TimeOutManager()}else{window.GDPR_HELPER.saveAndUpdateData();clearInterval(i)}},t)}},TimeOutManager:function e(){if(!l.CookieHandler.timerIsSet){if(l.CookieHandler.defaultTime>l.CookieHandler.maxTime){return}l.CookieHandler.timerIsSet=!1;l.CookieHandler.Timer()}}};l.CookieHandler=new A;l.CookieHandler.start();d.banner=function(){this.banner=b(l,"div#banner-wrapper");this.node_banner_flag=b(l,"div#cookie-banner_flag");this.node_banner_tagWithLink=S(l,"a").filter(function(e){if(e.getAttribute("href")!==null&&e.getAttribute("href").toUpperCase().match(/\/\?ID=GDPR_769769DD5C4DA8EFB4D18BF16CA2C677/i)){return e}});this.node_tab=b(this.banner,".banner-body__content .tabs");this.node_essential=b(this.banner,".cookie_tab__wrapper.essential");this.node_marketing=b(this.banner,".cookie_tab__wrapper.marketing");this.node_toggleButtonSelectAll=b(this.banner,"#input_all_cookies");this.button_all=b(this.banner,"#all_accept");this.button_essenc=b(this.banner,"#essential_accept");this.button_checkAll=b(this.banner,'[for="input_all_cookies"]');this.node_saveButton=b(this.banner,".btn-manage__save");this.node_individualSettings=b(this.banner,".btn-manage");this.countEssentialCookies=0;this.countMarketingCookies=0;this.countSelectedCookie=0;this.hasSelected=!1;this.optIn=BC_JSON_ObjectBypass._bc_c_set.optIn;this.tabTypes={};this.selectedCookies=[];this.shopifyTracking=!1;this.userSettingType=0;this.selectedCookiesIncludes=function(t){this.selectedCookies.forEach(function(e){if(e===t){return!0}});return!1};setTimeout(function(){window.GDPR_LC_Banner.init()},200)};d.banner.prototype={init:function(){if(window.Shopify!==_&&Shopify.preview_host===undefined){T.resetDefault()}this.hiddenAllElements();this.setTagWithLinkAttributes();if(!u[c[3]]["const"].GDPR_cookie_event.isSet){this.banner.style.top=0;this.banner.style.left=0;this.eventForIndividualSetting();this.eventForSave();this.eventForEssentialSetting();this.eventForAcceptAllSetting();this.addEvents();u[c[3]]["const"].GDPR_cookie_event.isSet=!0;this.generateBannerContent();this.replaceBeecleverLink();d.CookieStack.checkStack()}if(this.node_saveButton){this.node_individualSettings.addEventListener("onClick",e=>{this.node_saveButton.style.display="flex"});this.node_saveButton.addEventListener("onClick",e=>{this.node_saveButton.style.display="none";this.node_individualSettings.style.display="flex"})}},replaceBeecleverLink:function(){var e=document.querySelector('[href="https://gdpr-legal-cookie.myshopify.com/"]');if(e!==null&&e.innerText.indexOf("beeclever")!==-1){e.parentElement.innerHTML='GDPR legal Cookie'}},shopifyMinConsentHiddenElements:function(){if(BC_JSON_ObjectBypass["_bc_c_set"]["ShopifyMinConsent"]){var e=document.querySelectorAll("#banner-wrapper .toggle");var t=document.querySelectorAll("#banner-wrapper #dynamicrows_type_1 tr:nth-child(1)");var i=document.querySelectorAll("#banner-wrapper #dynamicrows_type_2 tr:nth-child(1)");function n(e){Array.from(e).forEach(function(e){e.style.display="none"})}n(e);n(t);n(i)}},generateBannerContent:function(){this.setTabTypes();if(typeof data_gdpr_legal_banner_content!=="undefined"&&data_gdpr_legal_banner_content!==null){this.generateDynamicTypeHeader();this.generateDynamicContent();setTimeout(function(){window.GDPR_LC_Banner.setCookieCounters();window.GDPR_LC_Banner.shopifyMinConsentHiddenElements()},50)}this.setInputsFromUserSetting();this.checkHasSettings()},resetBanner:function(){v(GDPR_LC.Cookies.list).forEach(function(e){GDPR_LC.Cookies.list[e].isInTab=false});this.tabTypes={};this.generateBannerContent();this.helpers.setVisibility(this.banner,!0)},addEvents:function(){this.node_banner_flag&&this.node_banner_flag.addEventListener("click",function(){window.GDPR_LC_Banner.toggleBanner(!0)})},toggleBanner:function(e){if(e){setTimeout(function(){(function(){window.GDPR_LC_Banner.checkHasNewCookiesForBanner()})()},10)}this.helpers.setVisibility(this.banner,e);if(this.node_banner_tagWithLink.length===0){this.helpers.setVisibility(this.node_banner_flag,!e)}},checkHasSettings:function(){if(window.GDPR_LC_checkHasSettings===undefined){var e=0;var t=window.GDPR_LC.userConsentSetting!==null&&window.GDPR_LC.userConsentSetting.version!==undefined?window.GDPR_LC.userConsentSetting.version:y("GDPR_LC_Version");var i=Date.now();var n=2592e6;var o=false;function s(){e=window.GDPR_LC.userConsentSetting!==null&&window.GDPR_LC.userConsentSetting.date!==undefined?window.GDPR_LC.userConsentSetting.date:0}s();if(t!==null&&O>+t){if(window.GDPR_LC.userConsentSetting!==null){B();o=true}else{j(true);H();s()}}if(window.GDPR_LC.userConsentSetting===null){o=true}if(i-e>n){o=true}var r=S(this.banner,".banner-footer a");r.forEach(function(e){if(e.hasAttribute("href")){if(e.getAttribute("href")===document.location.pathname){o=false}}});this.toggleBanner(o);window.GDPR_LC_checkHasSettings=true}},setInputsFromUserSetting:function(){var e=this.helpers.getInputNodes();var s=!1;if(GDPR_LC.Cookies.list._bc_c_set.type_all!==_){s=GDPR_LC.Cookies.list._bc_c_set.type_all}e.forEach(function(e){if(e.getAttribute("onclick")===f){var t=e.getAttribute("name"),i=GDPR_LC.Cookies.list[t],n=!1,o=!1;if(t!==f&&i!==undefined){if(GDPR_LC.Cookies.list._bc_c_set[i.type]!==_){n=GDPR_LC.Cookies.list._bc_c_set[i.type]}if(s||n||i.userSetting){o=!0}e.checked=o}}})},setTagWithLinkAttributes:function(){if(this.node_banner_tagWithLink.length>0){var e=this;this.node_banner_tagWithLink.forEach(function(e){e.setAttribute("data-bc_gdpr-linkTag","/?id=GDPR_769769dd5c4da8efb4d18bf16ca2c677");e.setAttribute("href","#banner-wrapper");e.classList.add("no-transition","js-no-transition")});Array.from(document.querySelectorAll("[data-bc_gdpr-linkTag]")).forEach(function(e){let t=e.cloneNode(true);e.parentElement.replaceChild(t,e);t.addEventListener("click",function(e){e.preventDefault();window.GDPR_LC_Banner.toggleBanner(!0)})})}},hiddenAllElements:function(){this.helpers.setVisibility(this.banner,!1);this.helpers.setVisibility(this.node_banner_flag,!1)},helpers:{setVisibility:function e(t,i,n){n=n||"flex";GDPR_LC_Banner.helpers.setBannerIsOpen(t,i);if(i&&t!==null){t.removeAttribute(t.getAttribute("hidden"));t.removeAttribute("hidden");D(t,!0,n)}else if(!i&&t!==null){D(t,!1,n)}},setBannerIsOpen:function(e,t){if(e==GDPR_LC_Banner.banner){window._GDPR_VAL.global.bannerOpen=t;if(!t&&!!GDPR_LC_Banner.fireCallback&&!window._GDPR_VAL.global.bannerOpen){GDPR_LC_Banner.fireCallback=false,document.dispatchEvent(new CustomEvent("bc_banner:banner_closed"))}else if(!t&&!GDPR_LC_Banner.fireCallback){GDPR_LC_Banner.fireCallback=true}}},getInputNodes:function e(){return S(l,"#banner-wrapper .banner-body__content > .tabs input")}},setTabTypes:function(){var e=v(GDPR_LC.Cookies.list),n=!1,o=this.tabTypes;e.forEach(function(e){var t=GDPR_LC.Cookies.list[e];if(t.type!==undefined){var i=!1;v(o).forEach(function(e){if(e===t.set){i=!0}});if(!i&&o[t.set]===undefined){o[t.set]=t.type;n=!0}}});if(n){if(typeof data_gdpr_legal_banner_content!=="undefined"&&data_gdpr_legal_banner_content!==null&&data_gdpr_legal_banner_content.cookieType!==undefined){if(this.tabTypes[0]!==f&&this.tabTypes[0]!==undefined){this.tabTypes[0]=data_gdpr_legal_banner_content.cookieType.type_0}else{this.tabTypes[0]=f}if(this.tabTypes[1]!==f&&this.tabTypes[1]!==undefined){this.tabTypes[1]=data_gdpr_legal_banner_content.cookieType.type_1}else{this.tabTypes[1]=f}if(this.tabTypes[2]!==f&&this.tabTypes[2]!==undefined){this.tabTypes[2]=data_gdpr_legal_banner_content.cookieType.type_2}else{this.tabTypes[2]=f}}else{if(this.tabTypes[0]!==f&&this.tabTypes[0]!==undefined){this.tabTypes[0]=u[c[3]].Cookie.translations.type_0}else{this.tabTypes[0]=f}if(this.tabTypes[1]!==f&&this.tabTypes[1]!==undefined){this.tabTypes[1]=u[c[3]].Cookie.translations.type_1}else{this.tabTypes[1]=f}if(this.tabTypes[2]!==f&&this.tabTypes[2]!==undefined){this.tabTypes[2]=u[c[3]].Cookie.translations.type_2}else{this.tabTypes[2]=f}}}else{Object.assign(this.tabTypes,JSON.parse('{ "0" : "'+u[c[3]].Cookie.translations.default.type_0+'" }'));Object.assign(this.tabTypes,JSON.parse('{ "1" : "'+u[c[3]].Cookie.translations.default.type_1+'" }'))}},generateDynamicTypeHeader:function(){var t=b(this.banner,".banner-main_header.list-type");t.innerHTML="";v(this.tabTypes).forEach(function(e){window.GDPR_LC_Banner.setDynamicTypeHeader(e,t)})},setDynamicTypeHeader:function(e,t){if(this.tabTypes[e]===f){return}var i=l.createElement("p");i.innerText=this.tabTypes[e].toString();t.appendChild(i)},generateDynamicContent:function(){var t=b(this.banner,".banner-body__content .tabs");t.innerHTML="";v(this.tabTypes).forEach(function(e){window.GDPR_LC_Banner.setDynamicContent(e,t)})},setDynamicContent:function(n,e){if(this.tabTypes[n]===f){return}var o=this.countEssentialCookies,t=!1,s=l.createElement("div"),r=!1,a=!1;v(GDPR_LC.Cookies.list).forEach(function(e){var t=GDPR_LC.Cookies.list[e];if(+t.set===+n&&!t.isInTab){var i=l.createElement("div");if(t.userSetting){r=!0}if(t.template===undefined){return}i.innerHTML=""+""+t.template(n,window.BC_JSON_ObjectBypass)+""+"
";s.appendChild(i);o++;t.isInTab=!0}if(t.name==="_bc_c_set"){if(t.type_all!==_){if(t.type_all||t[n]!==_&&t[n]){a=!0}}}});if(r||a){t='checked=""'}else{t=""}var i=l.createElement("div"),c="";if(+n===0){if(data_gdpr_legal_banner_content.essential!==_){c=data_gdpr_legal_banner_content.essential}else{c="Essential"}}else if(+n===1){if(data_gdpr_legal_banner_content.statistic!==_){c=data_gdpr_legal_banner_content.statistic}else if(data_gdpr_legal_banner_content.statistics!==_){c=data_gdpr_legal_banner_content.statistics}else{c="Statistics"}}else if(+n===2){if(data_gdpr_legal_banner_content.marketing!==_){c=data_gdpr_legal_banner_content.marketing}else{c="Marketing"}}i.setAttribute("class","cookie_tab__wrapper_header");i.innerHTML='

'+""+window.GDPR_LC_Banner.tabTypes[n]+""+"

"+"

"+c+"

";if(n>0){i.innerHTML+='
'+""+'"+"
"}i.innerHTML+="
"+''+data_gdpr_legal_banner_content.details+''+""+'"+"
";e.appendChild(i)},checkHasNewCookiesForBanner:function(){var t=!1;v(GDPR_LC.Cookies.list).forEach(function(e){if(!GDPR_LC.Cookies.list[e].isInTab){t=!0}});if(t){window.GDPR_LC_Banner.resetBanner()}},setCookieCounters:function(){for(var e in this.tabTypes){var t=[];var i=0;if(+e===0){t=S(l,"#banner-wrapper #dynamicrows_type_"+e+" div");b(l,"#banner-wrapper #summary_"+e+" .counter").innerText=" "+"("+" "+t.length+" "+")"}else{t=S(l,"#banner-wrapper #dynamicrows_type_"+e+" input");t.filter(function(e){if(e.checked){i++}});var n=b(l,"#banner-wrapper #summary_"+e+" .counter");if(n!==f){n.innerText=" "+"("+" "+i+" "+data_gdpr_legal_banner_content.buttons.how_many_are_accepted+" "+t.length+" "+")"}else{GDPR_LC.console.log("setCookieCounter undefined node",e)}}}},checkCheckboxChange:function(e){if(e.hasAttribute("data-dynamicrows")){this.shopifyTracking=GDPR_LC.g.c(e.getAttribute("name"));var t=b(l,"#"+e.getAttribute("data-dynamicrows")),i=S(t," input").filter(function(e){if(e.hasAttribute("data-row")){return}return window.GDPR_LC_Banner.prepareRecoverCookies(e)});b(l,"#"+e.getAttribute("data-parent")).checked=i.length>0;GDPR_LC.console.log("Banner => checkCheckboxChange",i.length)}else{if(e.hasAttribute("data-row")){var n=S(l,"#"+e.getAttribute("data-row")+" input");var o=e.checked;var s=n.length;for(var r=0;r=0;i--){var n=window.scriptElementsHidden.splice(0,1)[0];if(Array.isArray(n)){e(n.src)}else if(n.hasAttribute("src")){e(n.getAttribute("src"))}}}},saveUserSettings:function(t){this.toggleBanner(!1);var e=window.GDPR_LC_Banner.helpers.getInputNodes(),i=v(d.docCookies),n=!1;function o(e,t){if(GDPR_LC.Cookies.list[e]!==_){t=GDPR_LC.Cookies.list[e].set===0?true:t;GDPR_LC.Cookies.list[e].update("userSetting",t,true);GDPR_LC.Cookies.list[e].update("isInTab",!1);if(t===!1){d.CookieStack.push(e)}else{d.CookieStack.delete(e)}if(!(GDPR_LC.Cookies.list[e].name in i)&&GDPR_LC.Cookies.list[e].userSetting){GDPR_LC.Cookies.list[e].recover()}else{GDPR_LC.Cookies.list[e].remove()}if(u[c[4]][e]!==_){n=!0}}}if(typeof t==="boolean"){Array.from(Object.keys(GDPR_LC.Cookies.list)).forEach(function(e){o(e,t)})}else{e.forEach(function(e){o(e.getAttribute("name"),e.checked)})}GDPR_LC.Cookies.list._bc_c_set.userSettingType=window.GDPR_LC_Banner.userSettingType;GDPR_LC.Cookies.list._bc_c_set.lastChange=Date.now();GDPR_LC.Cookies.list._bc_c_set.userConsent=true;C(c[7],O.toString());C("GDPR_legal_cookie",GDPR_LC.Cookies.list);window.GDPR_LC.DEBUGGER=window.GDPR_LC.DEBUGGER||[];window.GDPR_LC.DEBUGGER.push(GDPR_LC.Cookies.list);window.GDPR_HELPER.saveAndUpdateData();j();H();window.GDPR_LC_Banner.sendConsent();d.CookieStack.checkStack();l.CookieHandler.reset();GDPR_LC_Banner.reInitScripts();setTimeout(function(){GDPR_LC.ShopifyTrekkie();if(typeof u[c[2]]==="function"){L()}GDPR_HELPER.loadExtensions()},200)}};l.addEventListener("click",d.setCookiesFromDocument);u.onload=function(){d.CookieStack.checkStack()};var x=function(){if(window.Shopify!==_&&typeof Shopify.Checkout==="undefined"){C(c[2],u[c[2]]);C(c[3],u[c[3]]);C(c[1],u[c[1]]);C(c[4],u[c[4]]);C(c[5],u[c[5]]);C(c[6],u[c[6]]);if(typeof u[c[8]]!=="undefined"){C(c[8],u[c[8]].toString())}if(typeof GDPR_Trekkie!=="undefined"){C("GDPR_Trekkie",GDPR_Trekkie.toString())}}};x();if(window.Shopify!==_&&typeof Shopify.Checkout!=="undefined"){if(typeof Shopify.Checkout.step!=="undefined"){if(Shopify.Checkout.step==="thank_you"){u[c[4]]=y(c[4]);tagManagerKeys=v(u[c[4]]);u[c[5]]=y(c[5]);u[c[1]]=y(c[1])}}}L();if(_GDPR_VAL.stackIntervalIsSet===_){setInterval(function(){d.CookieStack.checkStack()},500);_GDPR_VAL.stackIntervalIsSet=true}Array.from(document.head.querySelectorAll('[bc_empty_script_tag=""]')).forEach(function(e){e.remove()})}})();document.addEventListener("DOMContentLoaded",function(){function r(t,e){var i;if(typeof Symbol==="undefined"||t[Symbol.iterator]==null){if(Array.isArray(t)||(i=c(t))||e&&t&&typeof t.length==="number"){if(i)t=i;var n=0;var o=function e(){};return{s:o,n:function e(){if(n>=t.length)return{done:true};return{done:false,value:t[n++]}},e:function e(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s=true,r=false,a;return{s:function e(){i=t[Symbol.iterator]()},n:function e(){var t=i.next();s=t.done;return t},e:function e(t){r=true;a=t},f:function e(){try{if(!s&&i.return!=null)i.return()}finally{if(r)throw a}}}}function c(e,t){if(!e)return;if(typeof e==="string")return n(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor)i=e.constructor.name;if(i==="Map"||i==="Set")return Array.from(e);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return n(e,t)}function n(e,t){if(t==null||t>e.length)t=e.length;for(var i=0,n=new Array(t);i{const t=e.detail.category;unblockCategoryIframes(t)});document.addEventListener("visitorConsentCollected",i=>{const n={marketingAllowed:"marketing",analyticsAllowed:"analytics",preferencesAllowed:"preferences"};Object.keys(n).forEach(e=>{if(i.detail[e]){const t=new CustomEvent("bc::UnblockIframesForCategory",{detail:{category:n[e]}});document.dispatchEvent(t)}})});function handleCategoryConsent(e){const t={analytics:"input_all_cookies_type_1",marketing:"input_all_cookies_type_2"};const i=t[e];if(!i){console.warn(`No button ID found for category: ${e}`);return}const n=document.getElementById(i);if(!n){console.error(`Button element not found for ID: ${i}`);return}const o=document.querySelector(".banner-main_buttons .btn-accept.btn-manage__save");if(!o){console.error("Save/Close button not found.");return}n.checked=true;if(window.GDPR_LC_Banner&&typeof window.GDPR_LC_Banner.checkCheckboxChange==="function"){window.GDPR_LC_Banner.checkCheckboxChange(n)}else{console.error("GDPR_LC_Banner or checkCheckboxChange function not found.");return}o.click()}